package com.atguigu.acyjl;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;

import com.atguigu.acyjl.activity.PrimaryPage;

public class TiaoZi extends AppCompatActivity {

    TextView tvTiaoZi;
    String s;
    TiaoZiUtil tiaoZiUtil;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tiao_zi);

        tvTiaoZi = findViewById(R.id.tvTiaoZi);
        s = tvTiaoZi.getText().toString();
        tiaoZiUtil = new TiaoZiUtil(tvTiaoZi, s, 50);//调用构造方法，直接开启

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {


                Intent i = new Intent(getApplicationContext(), PrimaryPage.class);
                startActivity(i);
            }
        },2000);//8k best


    }
}
